module AutoBase
  module Sessionable
    attr_accessor :view
    
    def login(param = {})
    end

    def logout
    end

    def write(str, param = {})
    end

    def read(param = {})
    end

    def cmd(str, param = {})
    end

    def action(seq = nil)
      @action ||= {}
      @action[seq] ||= AutoBase::Sequence.new(self)
    end

    def call(param = {})
      @action_word ||= AutoBase::ActionWord.new(self)
      @action_word
    end
  end
end